package com.cpr.demo.mycraft.spring;

import org.springframework.beans.factory.InitializingBean;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author Chen Panrui
 * created at 2021/9/14 17:11
 */
public class MyService implements InitializingBean {

	private final Map<String,String> room = new LinkedHashMap<>();

	private String roomNo;

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("---CPR进入了房间room");
		room.put("me","CPR");
	}

	public Map<String, String> getRoom() {
		return room;
	}

	public String getRoomNo() {
		return roomNo;
	}

	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}
}
